				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên văn bản</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Loại văn bản</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Nhóm văn bản</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên Phòng Ban</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên Chi nhánh</a></th>
					<th class="table-header-repeat line-left"><a href="">Ngày </a></th>
					<th class="table-header-repeat line-left"><a href="">Ngày ban hành</a></th>
					<th class="table-header-repeat line-left"><a href="">Ngày có hiệu lực</a></th>
					
					<th class="table-header-repeat line-left"><a href="">Trạng thái</a></th>
					<th class="table-header-repeat line-left"><a href="">Độ quan trọng</a></th>
					<th class="table-header-repeat line-left"><a href="">Người duyệt</a></th>
					<th class="table-header-repeat line-left"><a href="">Nội dung</a></th>
					<th class="table-header-repeat line-left"><a href="">Tên tập tin</a></th>
					<th class="table-header-options line-left"><a href="">Options</a></th>
				</tr>
				
				
<?php
	foreach($this->vanban as $vanban)
	{
		$id = $vanban->getId();
		$tenvb = $vanban->getTenvanban();
		$nhomvanban = $vanban->getNhom();
		$tennhom = $nhomvanban->getTenNhom();
		
		$phongban = $vanban->getPhongban();
		$tenphongban = $phongban->getTenPhongban();
		
		$chinhanh = $vanban->getChinhanh();
		$tenchinhanh = $chinhanh->getTenchinhanh();
		
		$loaivanban = $vanban->getLoaivanban();
		$tenloai = $loaivanban->getTenLoai();
		
		$ngay = $vanban->getNgay();
		$ngaybanhanh = $vanban->getNgaybanhanh();
		$noidung = $vanban->getTrichdan();
		$ngaycohieuluc  = $vanban->getNgaycohieuluc();
		$trangthai = $vanban->trangthaiList();
		$doquantrong =$vanban->doquantrongList();
		$nguoiduyet = $vanban->getNguoiduyet();
			
		$taptins = $vanban->getTaptin();
		foreach ($taptins as $taptin){
			$tentaptin = $taptin->getTentaptin();
		}
		
		$linkChitiet = $this->baseUrl('/admin/vanban/chitiet/id/'.$id);
		//$tentaptin  = '<img src="'.$this->baseUrl('../public/docs/vanban/').$tentaptin.'"/>';
		
		$linkEdit = $this->baseUrl('/admin/vanban/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/vanban/xoa/id/'. $id);
?>
	<tr>				
					<td><input  type="checkbox"/></td>
					<td><a href="" ><?php echo $tenvb;?></a></td>					
					<td><?php echo $tenloai?></td>
					<td><?php echo $tennhom?></td>
					<td><?php echo $tenphongban?></td>
					<td><?php echo $tenchinhanh?></td>
					<td><?php echo $ngay?></td>
					<td><?php echo $ngaybanhanh?></td>
					<td><?php echo $ngaycohieuluc?></td>
					
					<td><?php echo $trangthai?></td>
					<td><?php echo $doquantrong?></td>
					<td><?php echo $nguoiduyet?></td>
					<td><?php echo $noidung?></td>
					<td><?php echo $tentaptin?></td>
					
					<td class="options-width">
					<a href="<?php echo $linkChitiet?>" title="Edit" class="icon-1 info-tooltip">Chi Tiết</a>
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip">Cập nhật</a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip">Xóa</a>
					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>
					</td>
				</tr>
				
<?php
			
	} 
?>
			</table>
				<!--  end product-table................................... -->
				</form>
